


https://api.deepseek.com/chat/completions
Content-Type: application/json
Authorization: Bearer sk-edd3e8cd147d4d6fadaa7934d1a6306b

//首轮对话
{
    "model": "deepseek-chat",
    "messages": [
          {"role": "system", "content": "You are a helpful assistant."},
          {"role": "user", "content": "hello"}
        ],
    "stream": false
}



{
  "messages": [
    {
      "content": "You are a helpful assistant",
      "role": "system"
    },
    {
      "content": "Hi",
      "role": "user"
    }
  ],
  "model": "deepseek-chat",
  "frequency_penalty": 0,
  "max_tokens": 2048,
  "presence_penalty": 0,
  "response_format": {
    "type": "text"
  },
  "stop": null,
  "stream": false,
  "stream_options": null,
  "temperature": 1,
  "top_p": 1,
  "tools": null,
  "tool_choice": "none",
  "logprobs": false,
  "top_logprobs": null
}




{
	"id":"986b0945-0167-4140-87af-1134b0cab17c",
	
	"object":"chat.completion",
	"created":1742021720,
	"model":"deepseek-chat",
	"choices":[
		{"index":0,
		"message":
			{"role":"assistant","content":"Hello! How can I assist you today? 馃槉"},
			"logprobs":null,"finish_reason":"stop"}],
			
			"usage":{"prompt_tokens":10,"completion_tokens":11,"total_tokens":21,"prompt_tokens_details":{"cached_tokens":0},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":10},"system_fingerprint":"fp_3a5770e1b4_prod0225"}